package com.starnet.studentmanagement.mapper;

import com.starnet.studentmanagement.entity.CourseSelection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.starnet.studentmanagement.vo.GradeVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author sangeng
 * @since 2022-03-26
 */
@Mapper
public interface CourseSelectionMapper extends BaseMapper<CourseSelection> {
    List<GradeVO> listAllOrByCid(String cid, int limit, int offset);

    int countAllOrByCid(String cid);

    int getPassNumber(String cid);
}
